<script>
	export default {
		onLaunch: function() {	
			console.log('App Launch')
		},
		onShow: function() {
			this.$connectMqtt({
				connectTimeout: 4000, // 超时时间
				clientId: 'uniAppClient', // 客户端ID
				username: 'admin', // 用户名
				password: 'admin123456', // 密码
				keepalive: 60, // 心跳时间
				clean: false, // 清除会话
			},);
			console.log('App Show')
		},
		onHide: function() {
			this.$disconnectMqtt()
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
    @import "./uni_modules/vk-uview-ui/index.scss";
</style>
